<template>
    <h1>EL-分栏布局组件</h1>
    <el-row :gutter="40">
        <el-col :span="6" style="background-color: lightpink;">测试1</el-col>
        <el-col :span="6" style="background-color: #42b983;">测试2</el-col>
        <el-col :span="6" style="background-color: lightpink;">测试3</el-col>
        <el-col :span="6" style="background-color: #42b983;">测试4</el-col>
    </el-row>
    
    <h3>两张图</h3>
    <el-row :gutter="10">
        <el-col :span="12"><img src="mn1.jpg" width="100%"></el-col>
        <el-col :span="12"><img src="mn1.jpg" width="100%"></el-col>
    </el-row>
    <h3>六张图</h3>
    <el-row :gutter="10">
        <el-col :span="4" v-for="i in 6"><img src="mn1.jpg" width="100%"></el-col>
    </el-row>
    <h3>每列都是数字，显示的文字为从1~8，等分</h3>
    <el-row :gutter="10">
        <el-col :span="3" v-for="i in 8">{{i}}</el-col>
    </el-row>
    <h3>三张图1:2:3</h3>
    <el-row :gutter="10">
        <el-col :span="4"><img src="mn1.jpg" width="100%"></el-col>
        <el-col :span="8"><img src="mn1.jpg" width="100%"></el-col>
        <el-col :span="12"><img src="mn1.jpg" width="100%"></el-col>
    </el-row>
    <h3>列偏移</h3>
    <el-row>
        <el-col :span="20" :offset="4"><img src="4.jpg"></el-col>
    </el-row>
    <h3>列偏移2：占12份且居中</h3>
    <el-row gutter>
        <el-col :span="12" :offset="6"><img src="4.jpg"></el-col>
    </el-row>
<!--  布局嵌套  -->
    <el-row>
        <el-col :span="12" style="border: 5px solid lightcoral;">左侧</el-col>
        <el-col :span="12" style="border: 5px solid cornflowerblue;">
            <el-row>
                <el-col :span="8" style="border: 5px solid #00ff00;">111</el-col>
                <el-col :span="8" style="border: 5px solid #00ffff;">222</el-col>
                <el-col :span="8" style="border: 5px solid #000000;">333</el-col>
            </el-row>
        </el-col>
    </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>